﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterPage/Site.Master" AutoEventWireup="true" CodeBehind="EstadosMesas.aspx.cs" Inherits="new_Seminario.EstadosMesas" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Estado de Mesas</h2>
    <p>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConflictDetection="CompareAllValues" 
            ConnectionString="<%$ ConnectionStrings:BarCafeConnectionString %>" 
            DeleteCommand="DELETE FROM [Mesa] WHERE [Id_Mesa] = @original_Id_Mesa AND (([Descripcion] = @original_Descripcion) OR ([Descripcion] IS NULL AND @original_Descripcion IS NULL)) AND [Nro_Comensales] = @original_Nro_Comensales AND [Id_Estado] = @original_Id_Estado" 
            InsertCommand="INSERT INTO [Mesa] ([Descripcion], [Nro_Comensales], [Id_Estado]) VALUES (@Descripcion, @Nro_Comensales, @Id_Estado)" 
            OldValuesParameterFormatString="original_{0}" 
            SelectCommand="SELECT [Id_Mesa], [Descripcion], [Nro_Comensales], [Id_Estado] FROM [Mesa]" 
            UpdateCommand="UPDATE [Mesa] SET [Descripcion] = @Descripcion, [Nro_Comensales] = @Nro_Comensales, [Id_Estado] = @Id_Estado WHERE [Id_Mesa] = @original_Id_Mesa AND (([Descripcion] = @original_Descripcion) OR ([Descripcion] IS NULL AND @original_Descripcion IS NULL)) AND [Nro_Comensales] = @original_Nro_Comensales AND [Id_Estado] = @original_Id_Estado">
            <DeleteParameters>
                <asp:Parameter Name="original_Id_Mesa" Type="Int32" />
                <asp:Parameter Name="original_Descripcion" Type="String" />
                <asp:Parameter Name="original_Nro_Comensales" Type="Int32" />
                <asp:Parameter Name="original_Id_Estado" Type="Int32" />
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter Name="Descripcion" Type="String" />
                <asp:Parameter Name="Nro_Comensales" Type="Int32" />
                <asp:Parameter Name="Id_Estado" Type="Int32" />
            </InsertParameters>
            <UpdateParameters>
                <asp:Parameter Name="Descripcion" Type="String" />
                <asp:Parameter Name="Nro_Comensales" Type="Int32" />
                <asp:Parameter Name="Id_Estado" Type="Int32" />
                <asp:Parameter Name="original_Id_Mesa" Type="Int32" />
                <asp:Parameter Name="original_Descripcion" Type="String" />
                <asp:Parameter Name="original_Nro_Comensales" Type="Int32" />
                <asp:Parameter Name="original_Id_Estado" Type="Int32" />
            </UpdateParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" CellPadding="4" DataKeyNames="Id_Mesa" 
            DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" 
            Width="918px">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:BoundField DataField="Id_Mesa" HeaderText="Id_Mesa" InsertVisible="False" 
                    ReadOnly="True" SortExpression="Id_Mesa" />
                <asp:BoundField DataField="Descripcion" HeaderText="Descripcion" 
                    SortExpression="Descripcion" />
                <asp:BoundField DataField="Nro_Comensales" HeaderText="Nro_Comensales" 
                    SortExpression="Nro_Comensales" />
                <asp:BoundField DataField="Id_Estado" HeaderText="Id_Estado" 
                    SortExpression="Id_Estado" />
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
              <emptydatatemplate>

  
            No se encontraron datos.  

        </emptydatatemplate> 
        </asp:GridView>
    </p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>

</asp:Content>
